﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using QLThuChi.Helpers;

namespace QLThuChi.Models
{
    public class DataContext
    {
        private static QLThuChiEntities _dataContext = null;

        static DataContext()
        {
            _dataContext = new QLThuChiEntities(GlobalVars.BuildEntityConnectionString());
        }

        public static QLThuChiEntities Instance
        {
            get { return _dataContext; }
        }
    }
}